<?php
session_start();
require_once '../Model/M_AddNewUser.php';
require_once '../../Common/Model/M_Validation.php';
require_once '../../Common/Model/Helpper.php';

$log = new Helpper();
$log ->log("In add new user controller: C_AddNewUser.php", "True");

$customerType=$_POST['customerType'];
$firstName = $_POST['first_name'];
$fatherName = $_POST['father_name'];
$familyName = $_POST['family_name'];
$username = $_POST['username'];
$password = $_POST['password'];
$re_password = $_POST['re_typed_password'];
$mobile = $_POST['mobile'];
$email = $_POST['email'];
$validation = new Com_Validation();

$isUsername = $validation->isUsername($username);
$isPassword = $validation->isPassword($password);
$isFirstName = $validation->isName($firstName);
$isFatherName = $validation->isName($fatherName);
$isFamilyName = $validation->isName($familyName);
$isEmail = $validation->isEmail($email);
$isMatchedPassword = $validation ->isMatchedPassword($password, $re_password);

echo $customerType.'<br>';
?>
